//
//  TopImageUrlZoom.h
//  yuimall_Iphone
//
//  Created by yuike6 yuike6 on 12-4-5.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef enum {
    ZoomAddType_InValid = -1,
    ZoomAddType_84,// 80*40
    ZoomAddType_63,
    ZoomAddType_300,
    ZoomAddType_8165,
    ZoomAddType_11090,
    ZoomAddType_24,
    ZoomAddType_30,
    ZoomAddType_40,
    ZoomAddType_60,
    ZoomAddType_70,
    ZoomAddType_80,
    ZoomAddType_100,
    ZoomAddType_110,
    ZoomAddType_120,
    ZoomAddType_160,
    ZoomAddType_170,
    ZoomAddType_250,
    ZoomAddType_310,
    ZoomAddType_670,
    ZoomAddType_62010000,
    
    ZoomAddTypeCount
}
ZoomAddType;

#define _IMAGE_SIZE_TYPE_ERROR_RANGE_       50.0f

typedef enum 
{
    ImageSizeType_OriginSize,
    ImageSizeType_VeryBig,
    ImageSizeType_Big,
    ImageSizeType_Normal,
    ImageSizeType_Small,
    ImageSizeType_VerySmall
}
ImageSizeType;

@interface TopImageUrlZoom : NSObject

+(NSString *) zoomTypeContent:(ZoomAddType) zoomType;



+(NSString *) ConvertImageUrlString2ZommUrlString:(NSString *) imageUrl 
                                       zoom:(ZoomAddType) zoomType;

+(NSURL *) ConvertImageUrlString2ZommUrl:(NSString *) imageUrl 
                              zoom:(ZoomAddType) zoomType;

+(NSString *) ConvertImageUrl2ZommUrlString:(NSURL *) imageUrl 
                              zoom:(ZoomAddType) zoomType;

+(NSURL *) ConvertImageUrl2ZommUrl:(NSURL *) imageUrl 
                                       zoom:(ZoomAddType) zoomType;
@end
